package com.ruoyi.dormitory.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 宿舍对象 tb_dormitory
 * 
 * @author ruoyi
 * @date 2023-12-28
 */
public class TbDormitory extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private String id;

    /** 宿舍编号 */
    @Excel(name = "宿舍编号")
    private String code;

    /** 宿舍类型（1：男宿舍，2：女宿舍） */
    @Excel(name = "宿舍类型", readConverterExp = "1=：男宿舍，2：女宿舍")
    private String type;

    /** 宿 舍 长 */
    @Excel(name = "宿 舍 长")
    private String studenId;

    /** 宿舍区域 */
    @Excel(name = "宿舍区域")
    private String area;

    /** 宿舍状态(1:已满，2：未满) */
    @Excel(name = "宿舍状态(1:已满，2：未满)")
    private String status;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setCode(String code) 
    {
        this.code = code;
    }

    public String getCode() 
    {
        return code;
    }
    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }
    public void setStudenId(String studenId) 
    {
        this.studenId = studenId;
    }

    public String getStudenId() 
    {
        return studenId;
    }
    public void setArea(String area) 
    {
        this.area = area;
    }

    public String getArea() 
    {
        return area;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("code", getCode())
            .append("type", getType())
            .append("studenId", getStudenId())
            .append("area", getArea())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
